package com.chrilwe.pigpig.auth.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.chrilwe.pigpig.core.model.user.ext.UserExt;
import cn.chrilwe.pigpig.core.util.ServiceName;

/**
  * 用户模块客户端
 * @author chrilwe
 * 2020-8-23
 */
@FeignClient(ServiceName.PIGPIG_USER)
public interface UserClient {

	@GetMapping("/user/queryByUsername")
	public UserExt queryByUserName(@RequestParam(value = "username", defaultValue = "")String username);
	
}
